print('\n'.join(['a', 'b', 'c']))
f = open("E:/测试2.txt", "r", encoding="UTF-8")
try:
    f = open("E:/测试5.txt", "r", encoding="UTF-8")

except:

    f = open("E:/测试5.txt", "w", encoding="UTF-8")
else:
    print("好高兴，无异常")
finally:
    f.close()
    print("文件已关闭")

def func1():
    print("func,开始执行")
    num = 1/0
    print(num)
    print("func1, 执行结束")


def func2():
    print("func2开始执行")
    func1()
    print("func2.结束执行")


def main():
    try:
        func2()
    except:
        print("出现异常了")


main()